<?php


namespace app\model;


use think\Model;

class Comment extends  Model
{
    public function userInfo(){
        return $this->hasOne(User::class ,'id' , 'user_id');
    }
}